package me.macd.mindoc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @program: mindoc
 * @description: ${description}
 * @author: 2018-10-09
 * @create: 2018-10-09 20:14
 */
@Controller
public class DocumentController {

    @RequestMapping(value = "docs/{key}", method = RequestMethod.GET)
    public String index(@PathVariable("key") String identify, @RequestParam("token") String token, Model model) {
        model.addAllAttributes(Common.map("DocumentController", "Index"));
        return "";
    }
}
